package context

import "github.com/gookit/validate"

type AliPlayerContext struct {
	Vid string `json:"vid" validate:"required" `
}

func (f AliPlayerContext) Messages() map[string]string {
	return validate.MS{
		"required": "{field}不能为空",
	}
}

// Translates 你可以自定义字段翻译
func (f AliPlayerContext) Translates() map[string]string {
	return validate.MS{
		"Vid": "视频ID",
	}
}
